import 'package:flutter/material.dart';
import 'package:hospitable_rental/routes/routes.dart';

class HomeNavigatorItem {
  final String title;
  final String imageUri;
  final Function(BuildContext context) onTap;

  HomeNavigatorItem(
    this.title,
    this.imageUri,
    this.onTap,
  );
}

List<HomeNavigatorItem> navigatorItemList = [
  HomeNavigatorItem(
    "整租",
    "assets/images/home_index_navigator_total.png",
    (BuildContext context) {
      Navigator.of(context).pushNamed(Routes.login);
    },
  ),
  HomeNavigatorItem(
    "合租",
    "assets/images/home_index_navigator_rent.png",
    (BuildContext context) {
      Navigator.of(context).pushNamed(Routes.login);
    },
  ),
  HomeNavigatorItem(
    "地图找房",
    "assets/images/home_index_navigator_map.png",
    (BuildContext context) {
      Navigator.of(context).pushNamed(Routes.login);
    },
  ),
  HomeNavigatorItem(
    "去出租",
    "assets/images/home_index_navigator_share.png",
    (BuildContext context) {
      Navigator.of(context).pushNamed(Routes.login);
    },
  ),
];
